From: Florian Müllner Date: Sat, 17 Jun 2017 16:14:20 +0000 (+0200) Subject: dateMenu: Set _delegate on non-menu-item menu child X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~260 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c1758c4d6949ff9b597e60f7ec2696ae506e1739;p=gnome-shell.git dateMenu: Set _delegate on non-menu-item menu child PopupMenu needs special-treatment of certain types of menu items, which it determines via children's _delegate property. However as the calendar drop-down is very unmenu-ish, we use regular actors rather than PopupMenuItems and the missing _delegate property triggers a warning. Just add it as the bare minimum to make PopupMenu happy. https://bugzilla.gnome.org/show_bug.cgi?id=781471 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 1ce377936..f891ae3c2 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -474,6 +474,8 @@ const DateMenuButton = new Lang.Class({ let layout = new FreezableBinLayout(); let bin = new St.Widget({ layout_manager: layout }); + // For some minimal compatibility with PopupMenuItem + bin._delegate = this; this.menu.box.add_child(bin); hbox = new St.BoxLayout({ name: 'calendarArea' });